package com.gis.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.gis.dto.WaterQualityReportDTO;
import com.gis.dto.YearAndSeasonDTO;
import com.gis.entity.WaterQualityData;
import jakarta.servlet.ServletOutputStream;

import java.util.List;

public interface WaterQualityDataService extends IService<WaterQualityData>{

    List<WaterQualityReportDTO> getWaterQualityAvgByYearAndSeason(int year, String season);

    List<WaterQualityData> getRedtideDataByTime(int year, String season);

    List<WaterQualityData> getFromYearAndSeason(int stationId, int fromYear, String fromSeason, int toYear, String toSeason, String tideStatus);

    YearAndSeasonDTO getLatestYearAndSeason(int id);

    List<Float> getParamLastN(String param, int n, int id);

    List<WaterQualityData> getOilspillDataByTime(int year, String season);

    List<WaterQualityData> getAllByYearAndSeason(int year, String season, String tideStatus);

    void generateTIF(ServletOutputStream outputStream, String param, int year, String season, String tideStatus);

    List<Integer> selectAllIds();
}
